home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1169 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.3 KB

  1. From: Torsten Scherer <itschere@techfak.uni-bielefeld.de>
  2. Subject: release tty patch report (was: another 1.10 job control bug)
  3. Date: Tue, 8 Mar 94 10:42:34 +0100
  4.  
  5.  Sorry Juergen, but your patch:
  6.  
  7. > Index: dosmem.c
  8. > @@ -748,6 +749,7 @@
  9. >        }
  10. >    }
  11. >
  12. > +#if 0
  13. >  /* release the controlling terminal, if we're a process group leader */
  14. >    fp = curproc->handle[-1];
  15. >    if (fp && is_terminal(fp) && curproc->pgrp == curproc->pid) {
  16. > @@ -755,6 +757,26 @@
  17. >        if (curproc->pgrp == tty->pgrp)
  18. >            tty->pgrp = 0;
  19. >    }
  20. > +#else
  21. > +/* release the controlling terminal, if we're the last member of this pgroup */
  22. > +       fp = curproc->handle[-1];
  23. > +       if (fp && is_terminal(fp)) {
  24. > +               struct tty *tty = (struct tty *)fp->devinfo;
  25. > +               int pgrp = curproc->pgrp;
  26. >
  27. > etc...
  28.  
  29.  regarding the release of the controlling terminal to re-enable more than
  30. just one login on a tty doesn't work for me. On my machine, it's best to use
  31. entropy's code with the '#if 1'. Nervously enough, I've never seen the
  32. mentioned pipe problems. But then, as you know, my machine tends to behave
  33. somehow weird sometimes... ;-)
  34.  
  35. ciao,
  36. TeSche
  37. --
  38. Torsten Scherer (TeSche, Schiller...)
  39. Faculty of Technology, University of Bielefeld, Germany, Europe, Earth,...
  40. use any of "finger itschere@129.70.131.2-15" for infos or drop me a mail...
  41.